<?php
$newsid = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
$pagenum = isset($_REQUEST['p']) ? intval($_REQUEST['p']) : 0;
if ($newsid > 0) {
        
        if(Db::delete('news',"id=$newsid")){
            Js::gourl(baseUrl() . '/newsList?p='.$pagenum);
            exit;
        }
}
?>
